import request from '@/utils/request'

// 查询物料质量周期列表
export function listNcMaterialQualityCycle(query) {
  return request({
    url: '/business/NcMaterialQualityCycle/list',
    method: 'get',
    params: query
  })
}

// 查询物料质量周期详细
export function getNcMaterialQualityCycle(id) {
  return request({
    url: '/business/NcMaterialQualityCycle/' + id,
    method: 'get'
  })
}

// 新增物料质量周期
export function addNcMaterialQualityCycle(data) {
  return request({
    url: '/business/NcMaterialQualityCycle',
    method: 'post',
    data: data
  })
}

// 修改物料质量周期
export function updateNcMaterialQualityCycle(data) {
  return request({
    url: '/business/NcMaterialQualityCycle',
    method: 'put',
    data: data
  })
}

// 删除物料质量周期
export function delNcMaterialQualityCycle(id) {
  return request({
    url: '/business/NcMaterialQualityCycle/' + id,
    method: 'delete'
  })
}
